<?php

$home = array(
    'namespace' => 'Home',
    'middleware' => ['web','access']
);
//Route::group(['middleware' => 'access'], function () {
    Route::get('/', 'Home\IndexController@getOauth2');
    Route::get('auth', 'Home\IndexController@getOauth2');
//});

//Route::get('/',function (){return 'ok';});//首页
Route::controller('test','Home\TestController');
Route::group($home, function () {
    Route::controller('home','IndexController');
    Route::controller('member','MemberController');
    Route::controller('doctor','DoctorController');
    Route::controller('department','DepartmentController');
    Route::controller('appoint','AppointmentController');
    Route::controller('comment','CommentController');
    Route::controller('card','CardController');
    Route::controller('charge','ChargeController');
    Route::controller('user','UserController');
    Route::controller('favorable','FavorableController');
    Route::controller('message','MessageController');
    Route::controller('response','ResponseController');
    Route::controller('pay','PayController');
    Route::controller('follow','FollowController');
    Route::controller('search','SearchController');
    Route::get('smscaptcha', 'SmsController@getSmsCaptcha');
});